﻿<%@ Page Language="C#" MasterPageFile="~/Views/Layout/Admin.master"
Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="HeadContent" ContentPlaceHolderID="Head" runat="server">
    <title>Product Management</title>
    <style>
        .app {
            width: 1000px;
            margin: 100px auto;
        }

        .product-table {
            width: 100%;
        }

        .product-table tr {
            height: 100px;
        }

        .product-table tr td {
            text-align: center;
        }

        .form {
            background-color: wheat;
            width: 100%;
            margin-bottom: 20px;
        }

        .form-item {
            display: flex;
            height: 100px;
        }
        .form-label {
            line-height: 100px;
            width: 200px;
            text-align: right;
            padding-right: 20px;
        }

        .form-control {
            flex: 1;
        }

        .form-control input {
            height: 60px;
            width: calc(100% - 20px);
            box-sizing: border-box;
            padding: 0 10px;
            margin-top: 20px;
        }

        .form-control textarea {
            width: calc(100% - 20px);
            padding: 0 10px;
            box-sizing: border-box;
            margin-top: 20px;
            resize: none;
        }

        .form-center {
            justify-content: center;
            align-items: center;
        }

        .btn-blue {
            width: 200px;
            background-color: blueviolet;
            border: none;
            color: white;
            cursor: pointer;
        }

        .btn-bg {
            border: none;
            cursor: pointer;
            background-color: blueviolet;
            color: white;
        }
    </style>
</asp:Content>
<asp:Content ID="ContentContent" ContentPlaceHolderID="Content" runat="server">
    <div class="app">
        <h1 class="page-title">Product Management</h1>
        <div class="form">
            <form>
                <input type="hidden" />
                <div class="form-item">
                    <label for="" class="form-label">Product Name:</label>
                    <div class="form-control">
                        <input
                            type="text"
                            placeholder="please enter your product name here"
                        />
                    </div>
                </div>
                <div class="form-item">
                    <label for="" class="form-label">Product Price:</label>
                    <div class="form-control">
                        <input
                            type="number"
                            placeholder="please enter your product price here"
                        />
                    </div>
                </div>
                <div class="form-item" style="height: 200px;">
                    <label for="" class="form-label">Product Details:</label>
                    <div class="form-control">
                        <textarea
                            name=""
                            id=""
                            cols="30"
                            rows="10"
                            placeholder="please enter your product details here"
                        ></textarea>
                    </div>
                </div>
                <div class="form-item">
                    <label for="" class="form-label">Product Image:</label>
                    <div class="form-control">
                        <input
                            type="text"
                            placeholder="please enter your product image path"
                        />
                    </div>
                </div>
                <div class="form-item form-center">
                    <button
                        class="btn btn-blue"
                        type="submit"
                        style="margin-right: 20px;"
                    >
                        Save
                    </button>
                    <button class="btn btn-blue" type="reset">Reset</button>
                </div>
            </form>
        </div>
        <table class="table product-table">
            <thead>
                <tr>
                    <td colspan="7">
                        Your Product List
                    </td>
                </tr>
                <tr>
                    <td>Id</td>
                    <td>Name</td>
                    <td>Price</td>
                    <td>Detail</td>
                    <td>Image</td>
                    <td>Edit</td>
                    <td>Delete</td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td width="120">
                        <button class="btn btn-bg">Edit</button>
                    </td>
                    <td width="120">
                        <button class="btn btn-bg">Delete</button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
